package com.xxgc.eow.service;

import com.xxgc.eow.entity.Admin;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 管理员表 服务类
 * </p>
 *
 * @author Mr.Abel
 * @since 2023-05-19
 */
public interface IAdminService extends IService<Admin> {

    List<Admin> getAdminAll();

    int delAdminById(int adminId);

    int addAdmin(Admin admin);

    int updatAdmin(Admin admin);

    Admin getAdminBYName(String AdminName);

    /**
     *
     *@author: 何包蛋
     *@modify:
     *@date: 2023/5/19 0:56
     *@param: [admin]
     *@return: int
     *
     *返回-1 密码错误
     *    0 用户不存在
     *    1 登录成功
     */
    int Login(Admin admin);

}
